<template>
  <div class="header">
    <div class="contents">
      <Left @modelDrag="modelDrag" @modelDragEnd="modelDragEnd"></Left>
    </div>
    <div class="left">
      <Content ref="content"></Content>
    </div>
  </div>
</template>

<script>
import Content from "./Content.vue";
import Left from "./left.vue";
export default {
  components: {
    Content,
    Left,
  },
  methods: {
    modelDrag(params) {
      this.$refs.content.drag(params);
    },
    modelDragEnd(params) {
      this.$refs.content.dragend(params);
    },
  },
};
</script>

<style scoped>
.header {
  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: space-around;
}

.contents {
  width: 20%;
  height: 100%;
  border: 1px solid red;
}
.left {
  width: 70%;
  height: 100vh;
  border: 1px solid red;
}
</style>